<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class FSearch extends CI_Controller {
	
	

		
	public function index(){
		$this->load->helper('form');
		$this->load->library('session');
		$this->load->library('form_validation');
		$this->form_validation->set_rules('email','email', 'required');
		if($this->form_validation->run() == FALSE){
			
			$this->load->view('fsearch_view');
		
		} else {
			
			$email = $this->input->post('email');
			$this->load->model('fsearch_model');
			$data['result'] = $this->search_model->fsearch_trip($email);
			$this->load->view('search_view3', $data);
		}
	}
}
?>